﻿using System;

class fappCommand
{
	public int doCommand(string fappcmd)
	{
		command cmd = null;

		//ただの分岐処理
		switch (fappcmd)
		{
			case "assoc":
				cmd = new assoc();
				break;

			case "call":
				cmd = new call();
				break;

			case "cd":
				cmd = new cd();
				break;

			case "cls":
				cmd = new cls();
				break;

			case "cmd":
				cmd = new cm();
				break;

			case "convert":
				cmd = new convert();
				break;

			case "copy":
				cmd = new copy();
				break;

			case "del":
				cmd = new del();
				break;

			case "erase":
				cmd = new erase();
				break;

			case "exit":
				cmd = new exit();
				break;

			case "format":
				cmd = new format();
				break;

			case "help":
				cmd = new help();
				break;

			case "keyb":
				cmd = new keyb();
				break;

			case "label":
				cmd = new label();
				break;

			case "md":
				cmd = new md();
				break;

			case "mem":
				cmd = new mem();
				break;

			case "mode":
				cmd = new mode();
				break;

			case "move":
				cmd = new move();
				break;

			case "netaccounts":
				cmd = new netaccounts();
				break;

			case "netconfig":
				cmd = new netconfig();
				break;

			case "nethelp":
				cmd = new nethelp();
				break;

			case "path":
				cmd = new path();
				break;

			case "ping":
				cmd = new ping();
				break;

			case "pause":
				cmd = new pause();
				break;

			case "prompt":
				cmd = new prompt();
				break;

			case "rd":
				cmd = new rd();
				break;

			case "rem":
				cmd = new rem();
				break;

			case "rename":
				cmd = new rename();
				break;

			case "replace":
				cmd = new replace();
				break;

			case "runas":
				cmd = new runas();
				break;

			case "start":
				cmd = new start();
				break;

			case "set":
				cmd = new set();
				break;

			case "dir":
				cmd = new dir();
				break;
		}
		cmd.Run();
		return cmd.Run();
	}
}